package com.aisile.user.client;

import com.aisile.model.media.pojos.WmUser;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Auther:yry
 * @Date:2024/1/2 0002
 * @VERSON:1.0
 */
@FeignClient("leadnews-wemedia")
public interface WemediaFeign {

    @GetMapping("/api/v1/wmuser/findByName/{name}")
    public WmUser findByName(@PathVariable("name") String name);

    @PostMapping("/api/v1/wmuser/save")
    public WmUser save(@RequestBody WmUser wmUser);
}
